import request from "@/utils/request";

// 汇总
export function getSummaryList(data) {
  return request({
    url: "/evaluationSummary/getLifelineSystemLoss",
    method: "post",
    data: data,
  });
}
// 获取汇总列表
export function getDataList(query) {
  return request({
    url: "/evaluationSummary/getLifelineSystemLossData",
    method: "get",
    params: query,
  });
}
// 获取列表
export function getCountList(data) {
  return request({
    url: "/evaluationSummary/getLifelineSystemLoss",
    method: "post",
    data: data,
  });
}
// 查看
export function getEvaluationSubArea(id) {
  return request({
    url: "/evaluationSummary/getLifelineSystemLossData",
    method: "get",
    params:{
    	xsemId:id
    }
  });
}

// 查看
export function getDisasterAreasHousesData(data) {
  return request({
    //url: "/houseEconomicDamageAssess/getDisasterAreasHousesData",
    url: "/houseEconomicDamageAssess/getDisasterAreasHousesDirectEconomicLosses",
    method: "post",
    data: data,
  });
}
// 校验
export function checkData(id,type) {
  return request({
    url: "/evaluationSummary/lifelineSystemCheckData",
    method: "get",
    params:{
    	xsemId:id,
    	type:type
    }
  });
}